#!/usr/bin/python
# -*- coding: UTF-8 -*-
import numpy as np
from PIL import Image
import random

def pic_test():
	# 创建一张图1920*1080分辨率

	for n in range(1,100):
		R=random.randint(0,255)
		G=random.randint(0,255)
		B=random.randint(0,255)

		img=Image.new("RGB",(2048,1280),(R,G,B))
		# 保存图片
		files = "%sx"%str(R)+"%sx"%str(G)+"%s.jpg"%str(B)
		print('第 %d 张图片'%n)
		img.save(files)



pic_test()


